//
//  ZJPageTitleView.h
//  ScrollPageView
//
//  Created by kepuna on 2017/4/12.
//  Copyright © 2017年 kepuna. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol ZJPageTitleViewDelegate ;

@interface ZJPageTitleView : UIView

@property (nonatomic, weak) id<ZJPageTitleViewDelegate> delegate;

- (instancetype)initWithFrame:(CGRect)frame titles:(NSArray *)titles;
- (void)setTitleWithTargetIndex:(NSInteger)targetIndex;

+ (CGFloat)height;

@end

@protocol ZJPageTitleViewDelegate <NSObject>

@optional
- (void)pageTitleView:(ZJPageTitleView *)pageTitleView clickIndex:(NSInteger)index;

@end
